package com.wicket.okrbff.biz.service.dto.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffOpenConfItemCustomResultDto
 * @使用场景
 */
@Data
public class BffOpenConfItemCustomResultDto implements Serializable {

    /**
     * 结果值:
     */
    @NotNull(message = "结果值不能为空")
    @ApiModelProperty("结果值")
    private String endValue;

    /**
     * 结果类型:
     */
    @ApiModelProperty("结果类型")
    private String resultType;

    /**
     * 选项类型:
     */
    @NotNull(message = "选项类型不能为空")
    @ApiModelProperty("选项类型")
    private String optionType;

    /**
     * 配置项下选项关系ID:
     */
    @NotNull(message = "配置项下选项关系ID 不能为空")
    @ApiModelProperty("配置项下选项关系ID ")
    private String confOptionRshipId;

    /**
     * 配置选项标识:
     */
    @NotNull(message = "配置选项标识不能为空")
    @ApiModelProperty("配置选项标识")
    private String confOptionCode;

    /**
     * 冗余配置选项名称:
     */
    @NotNull(message = "冗余配置选项名称不能为空")
    @ApiModelProperty("冗余配置选项名称")
    private String confOptionName;

    /**
     * 配置项标识:
     */
    @NotNull(message = "配置项标识不能为空")
    @ApiModelProperty("配置项标识")
    private String confItemCode;

    /**
     * 冗余配置项简称:
     */
    @ApiModelProperty("冗余配置项简称")
    private String shortName;

    /**
     * 所属配置项分组标识:
     */
    @NotNull(message = "所属配置项分组标识不能为空")
    @ApiModelProperty("所属配置项分组标识")
    private String confItemClassCode;

    /**
     * 配置结果归属对象类型:
     */
    @NotNull(message = "配置结果归属对象类型不能为空")
    @ApiModelProperty("配置结果归属对象类型")
    private String resultAspObjType;

    /**
     * 配置结果归属对象ID:
     */
    @NotNull(message = "配置结果归属对象ID不能为空")
    @ApiModelProperty("配置结果归属对象ID")
    private String resultAspObjId;

    /**
     * 配置方案ID:
     */
    @NotNull(message = "配置方案ID 不能为空")
    @ApiModelProperty("配置方案ID ")
    private String confSchemeId;

    /**
     * 配置方案标识:
     */
    @NotNull(message = "配置方案标识不能为空")
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;
    /**
     * 选项结果ID:
     */
    @NotNull(message = "选项结果ID不能为空")
    @ApiModelProperty("选项结果ID")
    private String optionResultId;
    /**
     * 分组名称:
     */
    @NotNull(message = "分组名称不能为空")
    @ApiModelProperty("分组名称")
    private String confItemClassName;
    /**
     * 配置方案名称:
     */
    @NotNull(message = "配置方案名称不能为空")
    @ApiModelProperty("配置方案名称")
    private String confSchemeName;
    /**
     * 是否初始方案:
     */
    @NotNull(message = "是否初始方案不能为空")
    @ApiModelProperty("是否初始方案")
    private String isInitialScheme;
    /**
     * 选项排序
     */
    @NotNull(message = "选项排序不能为空")
    @ApiModelProperty("选项排序")
    private Long confOptionSortNum;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffOpenConfItemCustomResultDto that = (BffOpenConfItemCustomResultDto) o;
        return endValue == that.endValue && resultType == that.resultType && optionType == that.optionType && confOptionRshipId == that.confOptionRshipId && confOptionCode == that.confOptionCode && confOptionName == that.confOptionName && confItemCode == that.confItemCode && shortName == that.shortName && confItemClassCode == that.confItemClassCode && resultAspObjType == that.resultAspObjType && resultAspObjId == that.resultAspObjId && confSchemeId == that.confSchemeId && confSchemeCode == that.confSchemeCode && optionResultId == that.optionResultId && confItemClassName == that.confItemClassName && confSchemeName == that.confSchemeName && isInitialScheme == that.isInitialScheme && confOptionSortNum == that.confOptionSortNum;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), endValue, resultType, optionType, confOptionRshipId, confOptionCode, confOptionName, confItemCode, shortName, confItemClassCode, resultAspObjType, resultAspObjId, confSchemeId, confSchemeCode, optionResultId, confItemClassName, confSchemeName, isInitialScheme, confOptionSortNum);
    }

}
